<?php

$dbname = 'data.db';

if(file_exists($dbname)){
	unlink($dbname);
}

$db = new SQLite3($dbname);

$sql= file_get_contents('data.sql');

$result = $db->query($sql);

if($result){
	echo 'Success';
}else{
	echo 'error';
}

?>